Skip to content

fix the UGI problem when reading ORC files#504

Closed
VicoWu wants to merge 1 commit intoapache:spark2from
VicoWu:hotfix-ugi-problem-for-thrift
Closed

fix the UGI problem when reading ORC files#504
VicoWu wants to merge 1 commit intoapache:spark2from
VicoWu:hotfix-ugi-problem-for-thrift

Conversation

@VicoWu
Copy link

@VicoWu VicoWu commented Dec 10, 2018

As mentioned in SPARK-11248, the spark thrift server have security bugs , cause the result that user A sometimes have the authority of user B and User B sometimes have the authority of user A in turn. I debugged it and I find that it is caused by the hive 1.2.1 library , OrcInputFormat.java, in which a thread pool is created to contact with remote HDFS. Since threads in pool is reused and shared, so , when thread-1-pool-1 is used by user A previously and after that user B is assigned to this thread in coincidence, then user B will have the security context of User A.

I have fixed this bug by add UserGroupInformation in this pool, to make sure that when a user is assigned a thread, then the security is switched to this user at the same time.

@rmsmani
Copy link
Contributor

rmsmani commented Feb 15, 2019

What's the JIRA number for this.
If Jira ticket is not available for this, create the ticket in Below URL, (under HIVE project)
https://issues.apache.org/jira/projects/HIVE
create the patch as given in the documentation
https://cwiki.apache.org/confluence/display/Hive/HowToContribute#HowToContribute-UnderstandingHiveBranches

So that GIT PRE-COMMIT testing will be done automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants